package com.cjg.javaBasics;

public class Test {
    public static void main(String[] args) {
   Father father =new Son();
   father.father();
   //father.son(); 报错

        Son son = new Son();
        Father father1 =son;
       father1.father();
      // 报错 father1.eat();




    }
}
